package com.qidian.mes.qc.config;/**
 * ClassName:RequestHandlerAutoConfiguration
 * Package:com.qidian.util.config
 **/

import com.qidian.mes.qc.interceptor.RequestHandlerInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author ppc
 * @Conpany study
 * @Description:
 * @Time 2024/4/17 21:58
 *
 **/
@Configuration
public class RequestHandlerAutoConfiguration implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        //配置拦截器
      registry.addInterceptor(new RequestHandlerInterceptor()).addPathPatterns("/**");
    }
}
